
<div id="icon-options-general" class="icon32"><br></div>
<h2>Theme des éditions</h2>
<h2>Modèle <a class="add-new-h2" href="#add" onclick="$('#formAdd').show()">Ajouter</a></h2>

<form action="edition/create" method="post" id="add">
<table class="form-table hidden" id="formAdd">
<tbody><tr valign="top">
<th scope="row">Nom Technique <input type="text" name="edition[setting_key]" value="" required="required"/></th>
<td>
Edition<br/>
<textarea class="wp-editor-area" style="height: 160px;width: 100%" cols="30" name="edition[setting]" id="content"></textarea><br/>
<p class="submit">
 <input name="edition_submit" id="submit" class="button button-primary" value="Ajouter" type="submit">
</p>
</td>
</tr>
</tbody>
</table>
 </form>


<p>Modèle pour Envoyer email,...</p>

<?php foreach($editions as $edition):?>
<hr/>
<form action="edition/edit" method="post">
<table class="form-table">
<tbody><tr valign="top">
<th scope="row">Nom Technique <input type="text" name="edition[setting_key]" value="<?php echo $edition->setting_key?>" required="required"/></th>
<td>
Edition<br/>
<textarea class="wp-editor-area" style="height: 160px; width: 100%" cols="30" name="edition[setting]" id="content"><?php echo $edition->setting?></textarea><br/>
<p class="submit">
 <input name="edition_submit" id="submit" class="button button-primary" value="Enregistrer les modifications" type="submit">
 <input name="edition[id]" class="button button-primary" value="<?php echo $edition->id?>" type="hidden">
</p>
</td>
</tr>
</tbody>
</table>
 </form>

<?php endforeach;?>




